import request from '@/utils/request'

export function listGeneral(query) {
  return request({
    url: '/General/general/list',
    method: 'get',
    params: query
  })
}

export function getGeneral(id,project) {
  return request({
    url:`/General/general/get?id=${id}&project=${project}`,
    method: 'get'
  })
}

// 新增
export function addGeneral(data,project) {
  return request({
    url: '/General/general',
    method: 'post',
    data: {data,project}
  })
}

// 修改
export function updateGeneral(data,project) {
  return request({
    url: '/General/general',
    method: 'put',
    data: {data,project}
  })
}

// 删除
export function delGeneral(ids,project) {
  return request({
    url: '/General/general/batch',
    method: 'delete',
    data: {ids,project}
  })
}



